package io.github.biezhi.elves.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.github.biezhi.elves.jmggzy.model.JmBiddingList;
import io.github.biezhi.elves.jmggzy.model.JmDownloadBiddingHtml;
import io.github.biezhi.elves.jmggzy.model.JmRecordBiddingNotice;
import io.github.biezhi.elves.mapper.JmggzyMapper;
import io.github.biezhi.elves.service.JmggzyService;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@Service("jmggzyService")
public class JmggzyServiceImpl implements JmggzyService {

	@Autowired
	private JmggzyMapper jmggzyMapper;
	
	@Override
	public void saveJmRecordBiddingNotice(JmRecordBiddingNotice jmRecordBiddingNotice) {
		jmggzyMapper.saveJmRecordBiddingNotice(jmRecordBiddingNotice);
	}

	@Override
	public Integer countByUrl(String noticeDetailUrl) {
		return jmggzyMapper.countByUrl(noticeDetailUrl);
	}

	@Override
	public List<JmRecordBiddingNotice> findRecordByNoticeTypeAndDate(String noticeType, String date) {
		return jmggzyMapper.findRecordByNoticeTypeAndDate(noticeType,date);
	}

	@Override
	public void saveJmDownloadBiddingHtml(JmDownloadBiddingHtml jmDownloadBiddingHtml) {
		jmggzyMapper.saveJmDownloadBiddingHtml(jmDownloadBiddingHtml);
	}

	@Override
	public Integer countByDownloadUrl(String noticeDetailUrl) {
		return jmggzyMapper.countByDownloadUrl(noticeDetailUrl);
	}

	@Override
	public List<JmDownloadBiddingHtml> listDownloadHtml() {
		return jmggzyMapper.listDownloadHtml();
	}

	@Override
	public void saveJmBiddingList(JmBiddingList jmbiddingList) {
		jmggzyMapper.saveJmbiddingList(jmbiddingList);
	}

	@Override
	public List<JmDownloadBiddingHtml> listDownloadHtmlByTabType(String tabType) {
		return jmggzyMapper.listDownloadHtmlByTabType(tabType);
	}

}
